import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_draw/p19/paper_world.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  // 横屏显示
  SystemChrome.setPreferredOrientations(
      [DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight]);
  // 全屏显示
  SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
  runApp(const ChartsApp());
}

class ChartsApp extends StatelessWidget {
  const ChartsApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        home: Scaffold(
          body: Center(
            child: ImageWorld(
                size: MediaQuery
                    .of(context)
                    .size
            ),
          ),));
  }
}
